home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / internet / weblibev / wltestc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-10  |  4.3 KB  |  129 lines

  1. // wltestc.h : main header file for the WLTESTC application
  2. //
  3.  
  4. #ifndef __AFXWIN_H__
  5.     #error include 'stdafx.h' before including this file for PCH
  6. #endif
  7.  
  8. #include "resource.h"       // main symbols
  9.  
  10. // Numeric IDs for each browser API the user may select; order must match string array
  11. #define WLAPI_GetWindowInfo                0
  12. #define WLAPI_ListWindows               1
  13. #define WLAPI_ActivateWindow               2
  14. #define WLAPI_CloseWindow                  3
  15. #define WLAPI_SetWindowPos                 4
  16. #define WLAPI_ShowWindow                   5
  17. #define WLAPI_ShowFile                     6
  18. #define WLAPI_OpenURL                      7
  19. #define WLAPI_SaveURL                      8
  20. #define WLAPI_PostFormData                 9
  21. #define WLAPI_SaveFormData                 10
  22. #define WLAPI_RegisterProtocol          11
  23. #define WLAPI_UnregisterProtocol           12
  24. #define WLAPI_RegisterURLEcho              13
  25. #define WLAPI_UnregisterURLEcho         14
  26. #define WLAPI_RegisterViewer               15
  27. #define WLAPI_UnregisterViewer          16
  28. #define WLAPI_RegisterWindowChange      17
  29. #define WLAPI_UnregisterWindowChange    18
  30. #define WLAPI_ParseAnchor               19
  31. #define WLAPI_GetVersion                20
  32. #define WLAPI_QueryURLFile              21
  33. #define WLAPI_SetNotifyMethod           22
  34. #define WLAPI_BrowserCount                23
  35.  
  36. // Numeric IDs for toolbar APIs; order must match string array
  37. #define WLAPI_IsToolbarActive            0
  38. #define WLAPI_SetActiveToolbar          1
  39. #define WLAPI_AddToolbarButton          2
  40. #define WLAPI_RemoveToolbarButton       3
  41. #define WLAPI_IsToolbarButtonVisible    4
  42. #define WLAPI_ShowToolbarButton         5
  43. #define WLAPI_EnableToolbarButton       6
  44. #define WLAPI_IsToolbarButtonEnabled    7
  45. #define WLAPI_GetToolbarText            8
  46. #define WLAPI_SetToolbarText            9
  47. #define WLAPI_GetToolbarFont            10
  48. #define WLAPI_SetToolbarFont            11
  49. #define WLAPI_GetToolbarBkgnd           12
  50. #define WLAPI_SetToolbarBkgnd           13
  51. #define WLAPI_GetToolbarTextColor       14
  52. #define WLAPI_SetToolbarTextColor       15
  53. #define WLAPI_ToolbarCount                16
  54.  
  55. // Numeric IDs for HTML parsing APIs; order must match string array
  56. #define WLAPI_HtmlEnumParseTree         0
  57. #define WLAPI_HtmlGetChild              1
  58. #define WLAPI_HtmlGetParent             2
  59. #define WLAPI_HtmlGetSibling            3
  60. #define WLAPI_HtmlGetElementType        4
  61. #define WLAPI_HtmlGetElementText        5
  62. #define WLAPI_HtmlGetTextAttr           6
  63. #define WLAPI_HtmlGetTagName            7
  64. #define WLAPI_HtmlGetTagType            8
  65. #define WLAPI_HtmlGetTagAttr            9
  66. #define WLAPI_HtmlExtractTagAttr        10
  67. #define WLAPI_HtmlFindText              11
  68. #define WLAPI_HtmlFindSpecial           12
  69. #define WLAPI_HtmlFindComment           13
  70. #define WLAPI_HtmlFindTagType           14
  71. #define WLAPI_HtmlFindTagName           15
  72. #define WLAPI_HtmlFindTagAttr           16
  73. #define WLAPI_HtmlEnumFindText          17
  74. #define WLAPI_HtmlEnumFindSpecial       18
  75. #define WLAPI_HtmlEnumFindComment       19
  76. #define WLAPI_HtmlEnumFindTagType       20
  77. #define WLAPI_HtmlEnumFindTagName       21
  78. #define WLAPI_HtmlEnumFindTagAttr       22
  79. #define WLAPI_HtmlCount                    23
  80.  
  81. // Numeric IDs for utility APIs; order must match string array
  82. #define WLAPI_AppendFormData            0
  83. #define WLAPI_GetFormDataLength         1
  84. #define WLAPI_ParseAbsoluteURL            2
  85. #define WLAPI_UtilCount                    3
  86.  
  87. #define MAINWNDSTYLE                    (CS_DBLCLKS|CS_HREDRAW|CS_VREDRAW)
  88.  
  89. #define WM_APP_SHOWMAINDLG                (WM_USER + 100)
  90.  
  91. /////////////////////////////////////////////////////////////////////////////
  92. // CWLTestApp: See wltestc.cpp for the implementation of this class
  93. //
  94.  
  95. class CWLTestApp : public CWinApp
  96. {
  97.   public:
  98.     CWLTestApp();
  99.  
  100.     virtual BOOL InitInstance(); 
  101.     virtual int ExitInstance();
  102.  
  103.     //{{AFX_MSG(CWLTestApp)
  104.     afx_msg void OnAppAbout();
  105.     //}}AFX_MSG          
  106.     
  107.     CString m_strMainWndClass;
  108.     
  109.     static const char *m_pszBrowserAPIs[WLAPI_BrowserCount + 1];
  110.       static const char *m_pszToolbarAPIs[WLAPI_ToolbarCount + 1];
  111.       static const char *m_pszHtmlAPIs[WLAPI_HtmlCount + 1];    
  112.       static const char *m_pszUtilAPIs[WLAPI_UtilCount + 1];
  113.     
  114.     DECLARE_MESSAGE_MAP()
  115. };
  116.  
  117. class CWLTestWnd : public CWnd
  118. {   
  119.   public:
  120.     CWLTestWnd();
  121.     virtual void PostNcDestroy();
  122.     
  123.     //{{AFX_MSG(CWLTestWnd)
  124.     afx_msg LONG OnShowMainDlg(UINT wParam,LONG lParam);
  125.     //}}AFX_MSG    
  126.     
  127.     DECLARE_MESSAGE_MAP()
  128. };
  129.